﻿@page
@model RegisterModel
@{
ViewData["Title"] = "Register";
}



<div class="row">
    <div class="col-md-12">
        <form asp-route-returnUrl="@Model.ReturnUrl" method="post">
            <h4>创建一个新帐户</h4>
            <hr />
            <div asp-validation-summary="All" class="text-danger"></div>
            <div class="form-group">
                <div class="myrow ">
                    <label asp-for="Input.Email"></label>
                    <p class="text-danger">*</p>
                </div>
                <div class="myrow">
                    <input asp-for="Input.Email" class="form-control col-md-4" id="userName"/>
                    <span class="verifyRight text-success" id="verifyRight" asp-validation-for="Input.Email">
                       
                    </span>
                </div>
                @*<span asp-validation-for="Input.Email" class="text-danger"></span>*@
            </div>
            <div class="form-group">
                <label asp-for="Input.NickName"></label>
                <input asp-for="Input.NickName" class="form-control col-md-4" />
                <span asp-validation-for="Input.NickName" class="text-danger"></span>
            </div>
            <div class="form-group">
                <div class="myrow">
                    <label asp-for="Input.Password"></label>
                    <p class="text-danger">*</p>
                </div>
                <input asp-for="Input.Password" class="form-control col-md-4" />
                <span asp-validation-for="Input.Password" class="text-danger"></span>
            </div>
            <div class="form-group">
                <div class="myrow">
                    <label asp-for="Input.ConfirmPassword"></label>
                    <p class="text-danger">*</p>
                </div>
                <input asp-for="Input.ConfirmPassword" class="form-control col-md-4" />
                <span asp-validation-for="Input.ConfirmPassword" class="text-danger"></span>
            </div>
            <button type="submit" class="btn btn-primary">注册</button>
        </form>
    </div>
</div>

@section Scripts {
<partial name="_ValidationScriptsPartial" />
}
<!-- <script>
    function verify() {
        var inputText = $("#userName").val();
        if (inputText!=""&&inputText!=null) {
            $.ajax({
                type: 'get',
                url: '/Identity/Account/Register',
                data:  {returnUrl:inputText},
                success: function (data) {
                    
                        
                        var html = '<img src="/images/verify.svg" alt="验证通过">';
                        $("#verifyRight").prepend(html);
                   $("#verifyRight").pend("");
                        <!-- alert(data); -->
                    
                @*},

            });
        }
    }
</script> -->*@
